x86/EFI: fix boot for pre-UEFI systems
authorEric Shelton <eshelton@pobox.com>
Thu, 23 May 2013 11:08:51 +0000 (13:08 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 23 May 2013 11:08:51 +0000 (13:08 +0200)
commit47f71a8ccb0c881cf3d9e0b917ef5f0dc084b062
treeba08019f01d55d090937024c831e2e929c2912e3
parent234c4dde2fd4f1182fe1a6bea6bced83fe363007
x86/EFI: fix boot for pre-UEFI systems

efi/boot.c makes a call to QueryVariableInfo on all systems.  However,
as it is only promised for UEFI 2.0+ systems, pre-UEFI systems can
hang or crash on this call.  The below patch adds a version check, a
technique used in other parts of the Xen EFI codebase.

Signed-off-by: Eric Shelton <eshelton@pobox.com>
Check runtime services version instead of EFI version (while generally
they would be in sync, nothing requires them to be).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/efi/boot.c